# ----------example 01-----------------
# 格式化日期
import time
# 2019-02-04 21:49:11
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
